package com.zhuang.spring.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * description: HelloController
 * date: 2022/10/8 16:13
 * author: Zhuang
 * version: 1.0
 */
@Controller
public class HelloController {

    @RequestMapping("/")
    public String index() {
    //设置视图名称
        return "index";
    }

    @RequestMapping("/hello")
    public String HelloWorld() {
        return "success";
    }
}
